home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 December / PCWorld_2005-12_cd.bin / software / vyzkuste / pspad / pspad433inst_cz.exe / {app} / Context / ActionScript.DEF next >
Text File  |  2004-05-07  |  13KB  |  802 lines

  1. ;; PSPad code template for ActionScript
  2. ;; Author: Karel Pavelka
  3. ;; E-mail: webjob@seznam.cz
  4. ;; Update: 28.4.2004
  5. ;;
  6. ;;   (black)
  7. ;; B (blue)      HTML 1.0
  8. ;; D (dark gray) Non-standard ActionScript
  9. ;; F (fuchsia)
  10. ;; G (green)
  11. ;; M (maroon)
  12. ;; N (navy)      Kusy kodu
  13. ;; P (purple)
  14. ;; R (red)
  15. ;;
  16. ;; Odsazeni: 2
  17. ;;
  18. ;; Sablona vznika postupne podle potreb, kritika a poznamky vitany!
  19. ;
  20. [Macro definition]
  21. %align3%=@C align=,align=,,center;left;right,'
  22. %boolean%=@C boolean,,,true;false,"
  23. %color%=@E color=,color=,,,'
  24. %command%=@C command,,,allowscale;fullscreen;exep;quit;showmenu;trapallkeys,"
  25. %condition%=@E podmφnka,,,,
  26. %event%=@C udßlost,,,load;unload;enterFrame;mouseDown;mouseMove;mouseUp;keyDown;keyUP;data,
  27. %face%=@F face=,face=,,,'
  28. %frame%=@E snφmek,,,,
  29. %href%=@O href=,href=,http://,html file (*.html;*.htm;*.php;*.php3;*.asp)|*.html;*.htm;*.php;*.php3;*.asp,'
  30. %include%=@O include,include,,ActionScript(*.as)|*.as,
  31. %keycode%=@E Φφseln² k≤d klßvesy,,,,
  32. %level%=@C ·rove≥,,,0;1;2;3;4;5;6;7;8;9,
  33. %loadi%=@P obrßzek,,,,,"
  34. %init%=@E inicializace,,,,
  35. %next%=@E next,,,,
  36. %loadt%=@O textov² soubor,,,document (*.txt)|*.txt,"
  37. %loadxml%=@O soubor,,,file (*.xml;*.php;*.php3;*.asp)|*.xml;*.php;*.php3;*.asp,"
  38. %loops%=@E poΦet opakovßnφ,,,,,
  39. %method%=@C metoda,,,get;post,"
  40. %n%=@E Φφslo,,,,,
  41. %on%=@C on,,,press;release;releaseOutside;rollOver;rollOut;dragOver;dragOut;keyPress'<BACKSPACE>';keyPress'<CAPSLOCK>';keyPress'<CONTROL>';keyPress'<DELETEKEY>';keyPress'<DOWN>';keyPress'<END>';keyPress'<ENTER>';keyPress'<ESCAPE>';keyPress'<HOME>';keyPress'<INSERT>';keyPress'<LEFT>';keyPress'<PGDN>';keyPress'<PGUP>';keyPress'<RIGHT>';keyPress'<SHIFT>';keyPress'<SPACE>';keyPress'<TAB>';keyPress'<UP>',
  42. %scene%=@E scene,,,,,"
  43. %size%=@E size=,size=,,,'
  44. %target%=@C target=,target=,,_blank;_parent;_self;_top,'
  45. %url%=@O soubor,,,file (*.swf)|*.swf,"
  46. %variable%=@E prom∞nnß,,,,
  47. %window%=@C window,,,_blank;_parent;_self;_top,
  48. %x%=@E osa x,,,,,
  49. %value%=@E hodnota,,,,,
  50. %XML%=@E XML prom∞nnß,,,,
  51. %y%=@E osa y,,,,,
  52. ;
  53. ;---------------------------------------------------------------------
  54. ;  tagy HTML version 1.0, kterou Flash podporuje v dynamick²ch textov²ch polφch
  55. ;---------------------------------------------------------------------
  56. ;
  57. [a |B odkaz bez podtr₧enφ]
  58. <a %href% %target%>º|</a>
  59. ;
  60. [a |B odkaz s podtr₧enφm]
  61. <u><a %href%>º|</a></u>
  62. ;
  63. [b |B tuΦnΘ pφsmo <b></b>]*CTRL+B
  64. <b>º|</b>
  65. ;
  66. [body |B t∞lo dokumentu]
  67. <body>
  68.   º|
  69. </body>
  70. ;
  71. [br |B zalomenφ °ßdku]*CTRL+ENTER
  72. <br>
  73. ;
  74. [font |B nastavenφ pφsma]
  75. <font %size% %face% %color%>º|</font>
  76. ;
  77. [html |B vymezenφ dokumentu <html></html>]
  78. <html>
  79.   º|
  80. </html>
  81. ;
  82. [HTMLs |B jednoduchß Üablona HTML strßnky]
  83. %variable%=<html>
  84.  <body>
  85.   º|
  86.  </body>
  87. </html>
  88. ;
  89. [i |B kurzφva]
  90. <i>º|</i>
  91. ;
  92. [p |B odstavec]*SHIFT+CTRL+P
  93. <p %align3%>
  94.   º|
  95. </p>
  96. ;
  97. [u |B podtr₧en² text]
  98. <u>º|</u>
  99. ;
  100. ;
  101. ;---------------------------------------------------------------------
  102. ;  ActionScript
  103. ;---------------------------------------------------------------------
  104. ;
  105. ;
  106. [/*...*/ | p°φkaz comment pro vφce°ßdkov² komentß°]
  107. /*
  108.   º|
  109. */
  110. ;
  111. [break | p°φkaz k p°eruÜenφ cyklu]
  112. break;
  113. ;
  114. [continue  | ukonΦφ krok cyklu a zaΦne od novΘho kroku nebo od nßv∞stφ]
  115. continue;
  116. ;
  117. [call  |D provede skript p°ipojen² k urΦitΘmu nßv∞Ütφ snφmku]
  118. call(%frame%);
  119. ;
  120. [delete  | odstranφ prom∞nnou]
  121. delete %variable%;
  122. ;
  123. [do_while | smyΦka provßdφ p°φkazy do spln∞nφ urΦenΘ podmφnky]
  124. do {
  125.   |
  126. } while (%condition%)
  127. ;
  128. [else | urΦuje p°φkazy, kterΘ se provedou pokud nenφ spln∞na podmφnka if]
  129. elese {
  130.     |
  131. }
  132. ;
  133. [exIMAGE  |N naΦtenφ externφho obrßzku do prezentace]
  134. createEmptyMovieClip(%variable%, %n%);
  135. %variable%.loadMovie(%loadi%);
  136. %variable%._visible = true;
  137. %variable%._x=%x%;
  138. %variable%._y=%y%;
  139. ;
  140. [for | vytvo°φ cyklus, kter² provßdφ p°φkazy do spln∞nφ podmφnky]
  141. for (%init%; %condition%; %next%){
  142.     |
  143. }
  144. ;
  145. [fscommand | FS p°φkaz]
  146. fscommand(%command%, %boolean%);
  147. ;
  148. [fscommandA | zabrßn∞nφ zm∞ny velikosti prezentace]
  149. fscommand("allowscale","false");
  150. ;
  151. [fscommandF | puÜt∞nφ prezentace na celou obrazovku]
  152. fscommand("fullscreen","true");
  153. ;
  154. [fscommandN | otev°enφ dokumentu *.txt v Notepadu z Flash prezentace]
  155. fscommand("exep","notepad"+chr(9)+%loadt%);
  156. ;
  157. [fscommandQ | ukonΦenφ prezentace]
  158. fscommand("quit");
  159. ;
  160. [fscommandS | zneviditeln∞nφ kontextovΘho menu]
  161. fscommand("showmenu","false");
  162. ;
  163. [fscommandT | zakßzanφ klßvesov²ch zkratek]
  164. fscommand("trapallkeys","true");
  165. ;
  166. [getURL | naΦte soubour na urΦenΘm URL]
  167. getURL(%url%);
  168. ;
  169. [gotoAndPlay | p°ejφt a spustit]
  170. gotoAndPlay(|);
  171. ;
  172. [gotoAndStop | p°ejφt a zastavit]
  173. gotoAndStop(|);
  174. ;
  175. [if | definovßnφ p°φkaz∙, kterΘ se provedou, pokud je spln∞nß podmφnka]
  176. if (%condition%) {
  177.      |
  178. }
  179. ;
  180. [ifFrameLoaded |D ]
  181. ifFrameLoaded()
  182. ;
  183. [include | vlo₧φ ActionScriptu z externφho textovΘho dokumentu]
  184. #include "%include%"
  185. ;
  186. [initclip | inicializace]
  187. #initclip |
  188. ;
  189. [loadMovie | naΦφst movie]
  190. loadMovie(%url%, %method%);
  191. ;
  192. [loadMovieNum | naΦφst movie s urΦenφm ·rovn∞]
  193. loadMovie(%url%, %level%);
  194. ;
  195. [loadVariables | naΦte do movie clipu externφ prom∞nou z textovΘho souboru]
  196. loadVariables(%loadt%, %method%);
  197. ;
  198. [Mouse.hide | skryje kurzor v animaci]
  199. Mouse.hide();
  200. ;
  201. [Mouse.show | zobrazφ kurzor v animaci]
  202. Mouse.show();
  203. ;
  204. [nextScene | dalÜφ scΘna]
  205. nextScene();
  206. ;
  207. [nextFrame | nßsledujφcφ snφmek]
  208. nextFrame();
  209. ;
  210. [on | p°i°azenφ akce tlaΦφtku]
  211. on (%on%) {
  212. }
  213. ;
  214. [on1 |N p°echod na jinou scΘnu po stisknutφ tlaΦφtka]
  215. on(release) {
  216.   tellTarget (_root) {
  217.     gotoAndPlay (%scene%, %frame%)
  218.   }
  219. }
  220. ;
  221. [onJS |N odkaz na JavaScript]
  222. on (release) {
  223.   getURL("Javascript:|");
  224. }
  225. ;
  226. [onClipEvent | p°i udßlosti klipu]
  227. onClipEvent(%event%) {
  228. }
  229. ;
  230. [play | zaΦne p°ehrßvat Φasovou osu movie clipu z aktußlnφ pozice]
  231. play();
  232. ;
  233. [prevScene | p°edchßzejφcφ scΘna]
  234. prevScene();
  235. ;
  236. [useCodepage | povolenφ pou₧φvßnφ znakovΘ sady Unicode k zajiÜt∞nφ sprßvnΘho zobrazovßnφ pφsmen s diakritikou]
  237. System.useCodepage=true;
  238. ;
  239. [setDate | nastavφ den v m∞sφci]
  240. setDate(|);
  241. ;
  242. [setFullYear | nastavφ m∞sφc, rok a datum]
  243. setFullYear(|);
  244. ;
  245. [stop | zastavit p°ehrßvßnφ]
  246. stop();
  247. ;
  248. [stopAllSounds | zastavφ p°ehrßvßnφ vÜech zvuk∙]
  249. stopAllSounds();
  250. ;
  251. [stopDrag | ukonΦφ nßsledovßnφ kurzoru myÜi movie clipem]
  252. stopDrag();
  253. ;
  254. [targetPath | ]
  255. targetPath();
  256. ;
  257. [toggleHighQuality |D ]
  258. toggleHighQuality()
  259. ;
  260. [trace | v testovacφm m≤du zobrazφ v²raz v okn∞ Output]
  261. trace("º|");
  262. ;
  263. [undefined | nedefinovßno]
  264. undefined
  265. ;
  266. [unloadMovie | odstranit naΦtenou movie]
  267. unloadMovie(%url%|);
  268. ;
  269. [unloadMovieNum | odstranit naΦtenou movie z ·rovn∞]
  270. unloadMovieNum(%level%);
  271. ;
  272. [var | definuje lokßlnφ prom∞nnΘ obsa₧enΘ uvnit° funkce]
  273. var %variable% = %value%;
  274. ;
  275. [XML | vytvo°enφ instance XML objektu]
  276. %XML% = new XML();
  277. ;
  278. [XMLattributes | reprezentuje atribut v objektu XMLNode]
  279. %XML%.attributes;
  280. ;
  281. [XMLload | ]
  282. %XML%.load(%loadxml%);
  283. ;
  284. [XMLloaded | ov∞°enφ dokonΦenφ procesu vklßdßnφ XML dokumentu]
  285. %XML%.loaded;
  286. ;
  287. [XMLignoreWhite| ignorace bφl²ch znak∙]
  288. %XML%.ignoreWhite = true;
  289. ;
  290. [XMLonData | ]
  291. %XML%.onData(%xmlsrc%);
  292. ;
  293. [XMLonLoad | ]
  294. %XML%.onLoad(success);
  295. ;
  296. [XMLNode.parentNode | vracφ rodiΦovsk² n≤d referenΦnφho n≤du]
  297. .parentNode;
  298. ;
  299. [XMLsend | odeslßnφ XML objektu]
  300. %XML%.send(%url%, %window%);
  301. ;
  302. [XMLxmlDec1 | vracφ XML deklaraci XML]
  303. %XML%.xmlDec1|
  304. ;
  305. [Keywords]
  306. abs
  307. Accessibility
  308. acos
  309. add
  310. addItem
  311. addItemAt
  312. addListener
  313. addProperty
  314. align
  315. alpha
  316. and
  317. appendChild
  318. apply
  319. applyChanges
  320. arguments
  321. Array
  322. arrow
  323. asin
  324. atan
  325. atan2
  326. attachMovie
  327. attachSound
  328. attributes
  329. autoSize
  330. background
  331. backgroundColor
  332. backgroundDisabled
  333. BACKSPACE
  334. beginFill
  335. beginGradientFill
  336. bold
  337. Boolean
  338. border
  339. borderColor
  340. bottomScroll
  341. bullet
  342. call
  343. callee
  344. caller
  345. capabilities
  346. CAPSLOCK
  347. ceil
  348. clear
  349. clearInterval
  350. cloneNode
  351. close
  352. color
  353. Color
  354. concat
  355. connect
  356. contentType
  357. CONTROL
  358. cos
  359. createElement
  360. createEmptyMovieClip
  361. createTextField
  362. createTextNode
  363. currentframe
  364. curveTo
  365. CustomActions
  366. darkshadow
  367. data
  368. Date
  369. DELETEKEY
  370. do
  371. docTypeDecl
  372. DOWN
  373. dragOut
  374. dragOver
  375. droptarget
  376. duplicateMovieClip
  377. duration
  378. embedFonts
  379. enabled
  380. END
  381. endFill
  382. endinitclip
  383. ENTER
  384. enterFrame
  385. escape
  386. ESCAPE
  387. eval
  388. exp
  389. face
  390. false
  391. firstChild
  392. floor
  393. focusEnabled
  394. focusrect
  395. focusRectInner
  396. focusRectOuter
  397. font
  398. foregroundDisabled
  399. framesloaded
  400. fromCharCode
  401. fscommand
  402. FStyleFormat
  403. get
  404. getAscii
  405. getBeginIndex
  406. getBounds
  407. getBytesLoaded
  408. getBytesTotal
  409. getCaretIndex
  410. getCode
  411. getData
  412. getDate
  413. getDay
  414. getDepth
  415. getEnabled
  416. getEndIndex
  417. getFocus
  418. getFontList
  419. getFullYear
  420. getGroupName
  421. getHours
  422. getItemAt
  423. getLabel
  424. getLength
  425. getMilliseconds
  426. getMinutes
  427. getMonth
  428. getNewTextFormat
  429. getPan
  430. getPaneHeight
  431. getPaneWidth
  432. getProperty
  433. getRGB
  434. getRowCount
  435. getScrollContent
  436. getScrollPosition
  437. getSeconds
  438. getSelectedIndex
  439. getSelectedIndices
  440. getSelectedItem
  441. getSelectedItems
  442. getSelectMultiple
  443. getState
  444. getTextExtent
  445. getTextFormat
  446. getTime
  447. getTimer
  448. getTimezoneOffset
  449. getTransform
  450. getURL
  451. getUTCDate
  452. getUTCDay
  453. getUTCFullYear
  454. getUTCMilliseconds
  455. getUTCMinutes
  456. getUTCMonth
  457. getUTCSeconds
  458. getUTCHours
  459. getValue
  460. getVersion
  461. getVolume
  462. getYear
  463. global
  464. globalStyleFormat
  465. globalToLocal
  466. gotoAndPlay
  467. gotoAndStop
  468. hasAccessibility
  469. hasAudio
  470. hasAudioEncoder
  471. hasChildNodes
  472. hasVideoEncoder
  473. height
  474. hide
  475. highlight
  476. highlight3D
  477. highquality
  478. hitArea
  479. HOME
  480. hscroll
  481. html
  482. htmlText
  483. charAt
  484. charCodeAt
  485. check
  486. childNodes
  487. ifFrameLoaded
  488. ignoreWhite
  489. include
  490. indent
  491. indexOf
  492. initclip
  493. INSERT
  494. insertBefore
  495. install
  496. int
  497. isActive
  498. isDown
  499. isFinite
  500. isNaN
  501. isToggled
  502. italic
  503. join
  504. Key
  505. keyDown
  506. keyPress
  507. keyUp
  508. lastChild
  509. lastIndexOf
  510. leading
  511. LEFT
  512. leftMargin
  513. length
  514. lineStyle
  515. lineTo
  516. list
  517. LN10
  518. LN2
  519. load
  520. loaded
  521. loadMovie
  522. loadMovieNum
  523. loadScrollContent
  524. loadSound
  525. loadVariables
  526. loadVariablesNum
  527. LoadVars
  528. localToGlobal
  529. log
  530. LOG10E
  531. LOG2E
  532. Math
  533. MAX_VALUE
  534. maxhscroll
  535. maxChars
  536. maxscroll
  537. mbchr
  538. mblength
  539. mbord
  540. mbsubstring
  541. min
  542. MIN_VALUE
  543. Mouse
  544. mouseDown
  545. mouseMove
  546. mouseUp
  547. moveTo
  548. multiline
  549. name
  550. NaN
  551. NEGATIVE_INFINITY
  552. newline
  553. nextFrame
  554. nextScene
  555. nextSibling
  556. nodeName
  557. nodeType
  558. nodeValue
  559. not
  560. null
  561. Number
  562. Object
  563. onClipEvent
  564. onClose
  565. onConnect
  566. onData
  567. onDragOut
  568. onDragOver
  569. onEnterFrame
  570. onChanged
  571. onKeyDown
  572. onKeyUp
  573. onKillFocus
  574. onLoad
  575. onMouseDown
  576. onMouseMove
  577. onMouseUp
  578. onPress
  579. onRelease
  580. onReleaseOutside
  581. onResize
  582. onRollOut
  583. onRollOver
  584. onScroller
  585. onSetFocus
  586. onSoundComplete
  587. onUnload
  588. onXML
  589. ord
  590. parent
  591. parentNode
  592. parseFloat
  593. parseInt
  594. parseXML
  595. password
  596. PGDN
  597. PGUP
  598. PI
  599. pixelAspectRatio
  600. play
  601. pop
  602. position
  603. POSITIVE_INFINITY
  604. pow
  605. press
  606. prevFrame
  607. previousSibling
  608. prevScene
  609. print
  610. printAsBitmap
  611. printAsBitmapNum
  612. printNum
  613. proto__
  614. prototype
  615. push
  616. quality
  617. radioDot
  618. random
  619. refreshPane
  620. registerClass
  621. registerSkinElement
  622. release
  623. releaseOutside
  624. removeAll
  625. removeItemAt
  626. removeListener
  627. removeMovieClip
  628. removeNode
  629. removeTextField
  630. replaceItemAt
  631. replaceSel
  632. restrict
  633. reverse
  634. RIGHT
  635. rightMargin
  636. rollOut
  637. rollOver
  638. root
  639. rotation
  640. round
  641. scaleMode
  642. screenColor
  643. screenDPI
  644. screenResolutionX
  645. screenResolutionY
  646. scroll
  647. scrollTrack
  648. selectable
  649. selection
  650. Selection
  651. selectionDisabled
  652. selectionUnfocused
  653. send
  654. sendAndLoad
  655. set
  656. setAutoHideScrollBar
  657. setClickHandler
  658. setData
  659. setDragContent
  660. setEditable
  661. setEnabled
  662. setFocus
  663. setFullYear
  664. setGroupName
  665. setHorizontal
  666. setHours
  667. setHScroll
  668. setChangeHandler
  669. setInterval
  670. setItemSymbol
  671. setLabel
  672. setLabelPlacement
  673. setLargeScroll
  674. setMask
  675. setMilliseconds
  676. setMinutes
  677. setMonth
  678. setNewTextFormat
  679. setPan
  680. setProperty
  681. setRGB
  682. setRowCount
  683. setScrollContent
  684. setScrollPosition
  685. setScrollProperties
  686. setScrollTarget
  687. setSeconds
  688. setSelectedIndex
  689. setSelectedIndices
  690. setSelection
  691. setSelectMultiple
  692. setSize
  693. setSmallScroll
  694. setState
  695. setStyleProperty
  696. setTextFormat
  697. setTime
  698. setTransform
  699. setUTCDate
  700. setUTCFullYear
  701. setUTCMilliseconds
  702. setUTCMinutes
  703. setUTCMonth
  704. setUTCSeconds
  705. setUTCHours
  706. setValue
  707. setVolume
  708. shadow
  709. shift
  710. SHIFT
  711. show
  712. showMenu
  713. sin
  714. size
  715. slice
  716. sort
  717. sortItemsBy
  718. sortOn
  719. Sound
  720. soundbuftime
  721. SPACE
  722. splice
  723. split
  724. sqrt
  725. SQRT1_2
  726. SQRT2
  727. Stage
  728. Stagealign
  729. start
  730. startDrag
  731. status
  732. stop
  733. stopAllSounds
  734. stopDrag
  735. String
  736. substr
  737. substring
  738. super
  739. swapDepths
  740. System
  741. TAB
  742. tabEnabled
  743. tabChildren
  744. tabIndex
  745. tabStops
  746. tan
  747. target
  748. targetPath
  749. tellTarget
  750. text
  751. textAlign
  752. textBold
  753. textColor
  754. textDisabled
  755. textFont
  756. TextFormat
  757. textHeight
  758. textIndent
  759. textItalic
  760. textLeftMargin
  761. textRightMargin
  762. textSelected
  763. textSize
  764. textUnderline
  765. textWidth
  766. toggleHighQuality
  767. toLowerCase
  768. toString
  769. totalframes
  770. toUpperCase
  771. trace
  772. trackAsMenu
  773. true
  774. type
  775. undefined
  776. underline
  777. unescape
  778. uninstall
  779. unload
  780. unloadMovie
  781. unloadMovieNum
  782. unshift
  783. unwatch
  784. UP
  785. updateAfterEvent
  786. url
  787. useHandCursor
  788. UTC
  789. valueOf
  790. variable
  791. visible
  792. watch
  793. width
  794. wordWrap
  795. XML
  796. xmlDecl
  797. XMLSocket
  798. xmouse
  799. xscale
  800. ymouse
  801. yscale
  802.